<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "order".
 *
 * @property string $id
 * @property string $order_time
 * @property string $appoint_date
 * @property string $appoint_time
 * @property string $corp_name
 * @property string $corp_number
 * @property string $corp_type
 * @property string $corp_contact
 * @property string $corp_contact_status
 * @property string $corp_mobile
 * @property string $corp_area
 * @property string $corp_address
 * @property string $corp_state
 * @property string $plan_date
 * @property string $serve_state
 * @property string $serve_time
 * @property string $serve_type
 * @property string $sign_state
 * @property integer $active_number
 * @property integer $active_num
 * @property string $begin_comm
 * @property string $end_comm
 * @property string $trans_state
 * @property string $user_nickname
 * @property string $organ_name
 * @property string $organ_intro
 * @property string $tran_introduce
 * @property string $remarks
 * @property string $uncert_reason
 * @property string $scene_record
 * @property string $user_id
 * @property string $app_id
 * @property integer $create_time
 */
class Order extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'order';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id'], 'required'],
            [['active_number', 'active_num', 'create_time'], 'integer'],
            [['id', 'user_id'], 'string', 'max' => 36],
            [['order_time', 'corp_contact', 'corp_contact_status', 'corp_state', 'plan_date', 'serve_state', 'sign_state', 'trans_state'], 'string', 'max' => 10],
            [['appoint_date', 'appoint_time', 'serve_time'], 'string', 'max' => 11],
            [['corp_name', 'corp_number', 'corp_address', 'organ_name'], 'string', 'max' => 30],
            [['corp_type', 'corp_mobile', 'corp_area', 'serve_type', 'user_nickname', 'app_id'], 'string', 'max' => 20],
            [['begin_comm', 'end_comm', 'organ_intro', 'tran_introduce', 'remarks', 'uncert_reason', 'scene_record'], 'string', 'max' => 100],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'order_time' => 'Order Time',
            'appoint_date' => 'Appoint Date',
            'appoint_time' => 'Appoint Time',
            'corp_name' => 'Corp Name',
            'corp_number' => 'Corp Number',
            'corp_type' => 'Corp Type',
            'corp_contact' => 'Corp Contact',
            'corp_contact_status' => 'Corp Contact Status',
            'corp_mobile' => 'Corp Mobile',
            'corp_area' => 'Corp Area',
            'corp_address' => 'Corp Address',
            'corp_state' => 'Corp State',
            'plan_date' => 'Plan Date',
            'serve_state' => 'Serve State',
            'serve_time' => 'Serve Time',
            'serve_type' => 'Serve Type',
            'sign_state' => 'Sign State',
            'active_number' => 'Active Number',
            'active_num' => 'Active Num',
            'begin_comm' => 'Begin Comm',
            'end_comm' => 'End Comm',
            'trans_state' => 'Trans State',
            'user_nickname' => 'User Nickname',
            'organ_name' => 'Organ Name',
            'organ_intro' => 'Organ Intro',
            'tran_introduce' => 'Tran Introduce',
            'remarks' => 'Remarks',
            'uncert_reason' => 'Uncert Reason',
            'scene_record' => 'Scene Record',
            'user_id' => 'User ID',
            'app_id' => 'App ID',
            'create_time' => 'Create Time',
        ];
    }
}
